﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls; 
using NetDon.Utilities;

namespace NetDon.OA.Portal.Controls
{
    public partial class Navigator : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            var page = Page as PageBase;
            if (page != null)
            {
                var navPath = page.NavigationPath;
                if (!MiscUtilities.IsNullOrEmpty(navPath))
                {
                    rptPath.DataSource = navPath;
                    rptPath.DataBind();
                    return;
                }
            }
            Visible = false;
        }
    }
}